package com.kangfu.db.mapper;

import com.kangfu.db.model.vo.NoticeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NoticeMapper {

    public List<NoticeVo> selectNoticeByUserId(@Param("userId") int userId, @Param("offset") int offset, @Param("pageSize") int pageSize);

    public int updateNoticeReadFlag(@Param("userId") int userId, @Param("id") int id);

    public int updateAllNoticeReadFlag(@Param("userId") int userId);

    public Integer selectUnreadCount(@Param("userId") int userId);
}
